package com.yuyou.fn.tms.vo.resource;

import com.yuyou.fn.platform.entity.District;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * Created by lzh on 2019/4/18.
 */
public class ResourceDistrict {
    @ApiModelProperty("数据ID")
    private Long masId ;//数据ID

    @ApiModelProperty("数据名字")
    private String masName	 ;//数据名字

    @ApiModelProperty("城市ID")
    private Long cityId ;//城市ID

    @ApiModelProperty("城市名字")
    private String cityName ;//城市名字

    @ApiModelProperty("0 正常(默认值) 1 已失效（已删除）")
    private Integer state ;//0 正常(默认值) 1 已失效（已删除）

    @ApiModelProperty("创建时间")
    private Date createTime ;//创建时间

    @ApiModelProperty("更新时间")
    private Date modifyTime ;//更新时间

    public ResourceDistrict(District district){
        this.setMasId(district.getDistrictId());//数据ID
        this.setMasName	(district.getDistrictName());//数据名字
        this.setCityId(district.getCityId());//城市ID
        this.setCityName(district.getCityName());//城市名字
        this.setState(0);//0 正常(默认值) 1 已失效（已删除）
        this.setCreateTime(district.getCreateTime());//创建时间
        this.setModifyTime(district.getUpdateTime());//更新时间
    }

    public Long getMasId() {
        return masId;
    }

    public void setMasId(Long masId) {
        this.masId = masId;
    }

    public String getMasName() {
        return masName;
    }

    public void setMasName(String masName) {
        this.masName = masName;
    }

    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }
}
